export const editFormRules = {
  branchName: [
    { required: true, message: '请选择', trigger: 'blur' },
  ],
  time: [
    {required: true, message: '请选择', trigger: 'blur' }
  ]
}

export const editFormOptions = [
  {
    label: '分支名称',
    type: 'input',
    key: 'branchName',
    span: 12,
    props: {
      placeholder: '请输入'
    }
  },
  {
    label: '开始时间',
    type: 'time',
    key: 'startTime',
    span: 12,
    props: {
      placeholder: '请选择时间'
    }
  },
  {
    label: '采购方式',
    type: 'select',
    key: 'purchaseType',
    span: 12,
    props: {
      placeholder: '请选择'
    },
    options: [
    ]
  },
  {
    label: '持续天数',
    type: 'number',
    key: 'duration',
    span: 12,
    props: {
      placeholder: '请输入',
      controls: false,
      min: 0,
      max: 99999999
    }
  },
  // {
  //   label: '采购类型',
  //   type: 'select',
  //   key: 'purchaseMethod',
  //   span: 12,
  //   props: {
  //     placeholder: '请选择'
  //   },
  //   options: [
  //   ]
  // },
  {
    label: '是否包含节假日',
    type: 'select',
    key: 'isHoliday',
    span: 12,
    props: {
      placeholder: '请选择'
    },
    options: [
      {
        label: '是',
        value: '1'
      },
      {
        label: '否',
        value: '2'
      }
    ]
  },
  {
    label: '委托预算总下限',
    type: 'number',
    key: 'budgetLowerLimit',
    span: 12,
    props: {
      placeholder: '请输入',
      controls: false,
      min: 0,
      max: 99999999
    }
  },
  {
    label: '是否有效',
    type: 'select',
    key: 'status',
    span: 12,
    props: {
      placeholder: '请选择'
    },
    options: [
      {
        label: '有效',
        value: '1'
      },
      {
        label: '无效',
        value: '0'
      }
    ]
  },
  {
    label: '委托预算总上限',
    type: 'number',
    key: 'budgetCeilLimit',
    span: 12,
    props: {
      placeholder: '请输入',
      controls: false,
      min: 0,
      max: 99999999
    }
  },
  {
    label: '排序',
    type: 'number',
    key: 'sortValue',
    span: 12,
    props: {
      placeholder: '请输入',
      controls: false,
      min: -99999999,
      max: 99999999
    }
  },
  {
    label: '公示天数',
    type: 'number',
    key: 'showDay',
    span: 12,
    props: {
      placeholder: '请输入',
      controls: false,
      min: 0,
      max: 99999999
    }
  },
  {
    label: '商品来源',
    type: 'select',
    key: 'goodsSource',
    span: 12,
    props: {
      placeholder: '请选择'
    },
    options: []
  },
]

export const editProcessFormOptions = []
